<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>SciSea</title>
    <%= stylesheet_link_tag 'layout' %>

    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag 'jquery-1.3.2.min' %>
    <script type="text/javascript">
      jQuery.noConflict();
    </script>
      <script type="text/javascript">
        function togglePreview() {
          if (jQuery('.blinds').attr('style') == 'display: block; opacity: 0.7;') {
            jQuery('.previewContainer').fadeTo('fast', 0.0)
              .hide();
            jQuery('.blinds').fadeTo('fast', 0.0)
              .hide();
          } else {
            jQuery('.blinds').show().fadeTo('normal', 0.7);
            jQuery('.previewContainer').show().fadeTo('normal', 1.0);
          }
        }
      </script>
  </head>
  <body onload="$('q').focus();">
    <div class="blinds"></div>
    <div class="previewContainer">
      <div class="previewBox" id="previewContainer">
        <%= link_to('close window and blinds if result is not loaded', 'javascript:void(0);', :onclick => 'togglePreview();') %>
      </div>
    </div>
    <div class="headerContainer">
      <div class="header">
        <%= link_to(image_tag('logo.jpg', :alt => 'SciSea: Science Search'), 'http://localhost:3000/', :class => 'logo') %>
        <div class="navLinks">
          <%= link_to('help', 'javascript: alert("This feature is not currently not activated");') %>
          <%= link_to('login', 'javascript: alert("This feature is not currently not activated");') %>
          <%= link_to('startpage', 'http://localhost:3000/') %>
        </div>
      </div>
    </div>
    <div class="contentContainer">
      <%= render :partial => "layouts/#{controller.sub_layout}" %>
    </div>
    <div class="footerContainer">
      <div class="footer">Student project for the course HCI at LIACS. Rights reserved to Machteld Dekens and Joost Elfering</div>
    </div>
  </body>
</html>

